{% extends "base.html" %}

{% block content %}

{% if event_messages %}
{% for message in event_messages %}
<p> {{message}} </p>
{% endfor %}
{% endif %}

<hd/>

<div>
	<p>
		<b>inventory:</b> {% if inventory %}{{ inventory|join:", " }}{% else %}None{% endif %}.
	</p>
</div>

<p> Action Points: {{ action_points }} </a></p>

{% if options %}
{% for option in options %}
<p> <a href="/game/{{char_id}}/option/{{option.id}}"> {{option.event.description}} (cost -> {{option.event.cost}})</a></p>
{% endfor %}
{% endif %}

{% if expensive %}
These actions doesn't fit in remaining Action Points:
<ul>
{% for expe in expensive %}
<li>{{expe.description}} (cost -> {{expe.cost}})</li>
{% endfor %}
</ul>
{% endif %}

{% if quest %}
<p> Quest: {{ quest }} reward -> {{ quest.reward }}</p>
{% endif %}

{% if completed %}
<p> Completed Quests: {{ completed }} </p>
{% endif %}

{% if failed %}
<p> Failed Quests: {{ failed }} </p>
{% endif %}

{% if score %}
<p> Score: {{ score }} </p>
{% endif %}

<a href="/tick/{{ char_id }}"> tick it!</a>

{% endblock %}